package com.example.comsumer.serialize;

/**
 * @ClassName Serialize
 * @Description TODO
 * @Author 11
 * @Date 2021/3/31 10:18
 * @Version 1.0
 */
public abstract class Serializer {
    public abstract <T> byte[] serialize(T obj);  //序列化
    public abstract <T> Object deserialize(byte[] bytes, Class<T> clazz);  //反序列化
}
